package sjtu.pirate.util;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
/**
 * @author wilbur.ma@qq.com
 * @date 2011.05.31
 * JodaTime library wrapper.
 */
public class JodaTimeUtil {
	public static String formatTime(DateTime dt) {
		DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss.SSS");
		return fmt.print(dt);
	}
}
